import shelve as s
dbase=s.open('hasaki')
a={'hasaki':1,'ha':2}
dbase['hashaki']=a
dbase.close()

'''
在文件夹下生成hasaki.bak,hasaki.dat,hasaki.dir
'''